package com.dragon.app.ykd.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class XXSCDecisionMoneyVO  implements Serializable{
	private static final long serialVersionUID = 1L;
	
private Integer periods;
private String money;


public static List<XXSCDecisionMoneyVO> getXXSCDecisionMoneyVO(Map<String, Object> map){
	Object object18 = map.get("decisionLimit18m");
	Object object24 = map.get("decisionLimit24m");
	Object object12 = map.get("decisionLimit12m");
	if(object18 == null && object24 == null) return null;
	List<XXSCDecisionMoneyVO> xxscDecisionMoneyVOs = new ArrayList<>();
	if(object18 != null){
		XXSCDecisionMoneyVO xxscDecisionMoneyVO = new XXSCDecisionMoneyVO();
		xxscDecisionMoneyVO.setPeriods(18);
		xxscDecisionMoneyVO.setMoney(object18 + "");
		xxscDecisionMoneyVOs.add(xxscDecisionMoneyVO);
	}
	if(object24 != null){
		XXSCDecisionMoneyVO xxscDecisionMoneyVO = new XXSCDecisionMoneyVO();
		xxscDecisionMoneyVO.setPeriods(24);
		xxscDecisionMoneyVO.setMoney(object24 + "");
		xxscDecisionMoneyVOs.add(xxscDecisionMoneyVO);
	}
	if(object12 != null){
		XXSCDecisionMoneyVO xxscDecisionMoneyVO = new XXSCDecisionMoneyVO();
		xxscDecisionMoneyVO.setPeriods(12);
		xxscDecisionMoneyVO.setMoney(object12 + "");
		xxscDecisionMoneyVOs.add(xxscDecisionMoneyVO);
	}

	return xxscDecisionMoneyVOs;
	
}

public Integer getPeriods() {
	return periods;
}
public void setPeriods(Integer periods) {
	this.periods = periods;
}
public String getMoney() {
	return money;
}
public void setMoney(String money) {
	this.money = money;
}
	
	
	
	
	
}
